/*
 * COPYRIGHT. ShenZhen iByte Technology Co., Ltd. 2018.
 * ALL RIGHTS RESERVED.
 *
 * No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
 * on any form or by any means, electronic, mechanical, photocopying, recording, 
 * or otherwise, without the prior written permission of ShenZhen iByte Network Technology Co., Ltd.
 *
 * Amendment History:
 * 
 * Date                   By              Description
 * -------------------    -----------     -------------------------------------------
 * Nov 30, 2018    Li.shangzhi         Create the class
 */
package com.github.icloud.elasticsearch.api.docment;
import org.elasticsearch.action.delete.DeleteResponse;
import org.junit.Test;
import com.github.icloud.elasticsearch.ElasticsearchClientBase;
/**
 * @FileName DeleteAPI.java
 * @Description: 删除文档
 *
 * @Date Nov 30, 2018 1:52:05 PM
 * @author Li.shangzhi
 * @version 1.0
 */
public class DeleteAPI extends ElasticsearchClientBase{

	@Test
	public void iEsPrepareDelete() throws Exception{
		DeleteResponse response = client.prepareDelete("icloud-iot-log", "icloud-auth", "ef5e68b00f58498a839bc0f4ebb86df9").get();
		System.out.println(response.getResult().name());

	}

}
